import {createApp} from 'vue'
import {createPinia} from 'pinia'

// import App from './App.vue'
import App from './components/FormCom1.vue'
import router from './router'

import './assets/main.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)

import ep from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/style/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ep,{locale:zhCn})

//引入element-plus icon 并全局注册，方便动态加载图标<component :is="icon"/>
import * as icons from '@element-plus/icons-vue'
for (const [k, c] of Object.entries(icons)) {
    app.component(k, c)
}

app.mount('#app')
